package com.sec.util;


import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConstantUtils {
    // 获取配置文件路径
    public String getValue(String key) throws IOException {
        Properties pps = new Properties();
        String evn = System.getProperties().getProperty("env");
        pps.load(this.getClass().getResourceAsStream("/config_" + evn + ".properties"));
//        System.out.println(pps.getProperty("xjtaxPath"));
//        System.out.println(pps.getProperty("imgPath"));
        return pps.getProperty(key);
    }
}
